package org.itboys.fuzion.entity;

import org.itboys.fuzion.constant.FuzionConstants;
import org.itboys.member.entity.Member;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;
import org.mongodb.morphia.annotations.NotSaved;

/**
 * 带有推荐关系的会员信息
 * @author weisky
 *
 * 2016年4月12日
 */
@Entity(value = "FuzionMember", noClassnameStored = true)
public class FuzionMember extends Member{

	private static final long serialVersionUID = -3942371722874110171L;
	
	@Indexed
	private Long recId;//推荐人的ID
	private String path;//推荐关系全路径
	@Indexed
	private Integer recLevel = FuzionConstants.TYPE_ZERO;//推荐关系的等级 默认0为第一等级
	@Indexed
	private String openId;//微信的OPENID
	@Indexed
	private Long scoreLevel = 0L;//对应等级表中的ID 默认为0 表示该会员还没有购买过产品
	
	@NotSaved
	private String recName;//推荐人姓名
	@NotSaved
	private String sellerName;//所属的店铺名
	@NotSaved
	private String scoreName;//会员等级名称
	
	public String getScoreName() {
		return scoreName;
	}
	public void setScoreName(String scoreName) {
		this.scoreName = scoreName;
	}
	public Long getScoreLevel() {
		return scoreLevel;
	}
	public void setScoreLevel(Long scoreLevel) {
		this.scoreLevel = scoreLevel;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public String getSellerName() {
		return sellerName;
	}
	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}
	public String getRecName() {
		return recName;
	}
	public void setRecName(String recName) {
		this.recName = recName;
	}
	public Long getRecId() {
		return recId;
	}
	public void setRecId(Long recId) {
		this.recId = recId;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public Integer getRecLevel() {
		return recLevel;
	}
	public void setRecLevel(Integer recLevel) {
		this.recLevel = recLevel;
	}
	
}
